package edu.sctu.zhoumengxue.day201506.day20150610;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by user12 on 2015/6/10.
 */
public class Main {
    public static void main(String[] args) {
        SimpleDateFormat simple = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date();
        System.out.println(simple.format(date));
        Calendar calendar = Calendar.getInstance();
        calendar.clear();
        calendar.set(2015,10,1,12,00,00);
        String time = simple.format(calendar.getTime());
        System.out.println(time);


    }
}
